package cn.VerifyConsumeQueue;

import java.util.concurrent.LinkedBlockingQueue;

public class VerifyConsumeQueue {
    private static volatile LinkedBlockingQueue linkedBlockingQueue;

    private VerifyConsumeQueue(){}

    public static synchronized LinkedBlockingQueue getLinkedBlockingQueue() {
        if (linkedBlockingQueue != null) {
            return linkedBlockingQueue;
        }else{
            linkedBlockingQueue = new LinkedBlockingQueue();
        }
        return linkedBlockingQueue;
    }
}
